package com.quxue.im.vo.chat;

import com.quxue.im.common.enums.MsgStatusEnum;
import com.quxue.im.entity.ChatUser;
import lombok.Data;

@Data
public class ChatMsgVo {
    /**
     * 发送状态
     */
    private MsgStatusEnum status;

    /**
     * 消息id
     */
    private Long msgId;

    /**
     * 好友详情
     */
    private ChatUser userInfo;

    public String getStatusLabel() {
        if (status == null) {
            return null;
        }
        return status.getInfo();
    }
}
